Package-level declarations

Message models and delivery statuses shared across the SDK.

Types

Link copied to clipboard
open class ChatStatement(var text: String = "", var timestamp: Long = System.currentTimeMillis())

Base model of a single message in the conversation, as exchanged with the Messenger service.

Link copied to clipboard
interface ErrorListener

A callback for receiving error notifications from the SDK.

Link copied to clipboard
data class QuickReplyOption(val text: String, val payload: String, val type: String)

A single option presented in a quick reply message.

Link copied to clipboard
annotation class StatementStatus

Marks an Int value as one of the message status constants: StatusOk, StatusSent, StatusPending, StatusBroken, StatusError, StatusNone, or StatusSame.

Properties

Link copied to clipboard
const val StatusBroken: Int

Not set by the SDK. Outgoing messages move from StatusPending to StatusOk or StatusError.

Link copied to clipboard
const val StatusError: Int

The outgoing message failed to send.

Link copied to clipboard
const val StatusNone: Int = 99

No status applies. The SDK sets this on incoming messages.

Link copied to clipboard
const val StatusOk: Int = 1

The outgoing message was delivered to the Messenger service.

Link copied to clipboard
const val StatusPending: Int

The outgoing message is being sent and has not been acknowledged yet.

Link copied to clipboard
const val StatusSame: Int = 0

Not set by the SDK. Outgoing messages move from StatusPending to StatusOk or StatusError.

Link copied to clipboard
const val StatusSent: Int = 2

Not set by the SDK. Outgoing messages move from StatusPending to StatusOk or StatusError.